# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=mir-core
pkgver=1.1.7
pkgrel=1
pkgdesc="Base software building blocks and conventions"
url="https://github.com/libmir/mir-core"
arch="x86_64 aarch64" # ldc
license="BSL-1.0"
makedepends="meson ldc ldc-runtime"
subpackages="$pkgname-dev"
source="https://github.com/libmir/mir-core/archive/v$pkgver/mir-core-$pkgver.tar.gz"

build() {
	abuild-meson \
		-Dwith_test=true \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="aa7ca3fabb6d318fb5c2e7b0abef1ee0ba31e6dce31a4e03c555b12fe3a313e5a0afaa7c7d0f5aca2faea31f5172cdffa8ce98ab7da029cb6b919c2d0639925c  mir-core-1.1.7.tar.gz"
